package ar.com.photo_admin.taglibs

class UserHelperTagLib {

	static namespace = "u"
	
	def springSecurityService
	
	def hasPassword = { attrs, body ->
		if (springSecurityService.isLoggedIn() && springSecurityService.currentUser.password) {
			out << body()
		}
	}
	
	def hasNotPassword = { attrs, body ->
		if (springSecurityService.isLoggedIn() && !springSecurityService.currentUser.password) {
			out << body()
		}
	}	
}
